package com.quiz.bis.domain.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.quiz.common.core.domain.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.List;

/**
 * 题目基础信息
 *
 * @author ahuan
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("questions")
public class Question extends BaseModel {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String title;
    private Long typeId;
    private String content;
    private String contentText;
    private String categoryId;
    private String attachmentIds;
    private Integer status;
    private String analysis;
    private String analysisText;
    private String remark;
    private Integer difficult;
    private Long simHash;
    private String processedText;

    @TableField(exist = false)
    private BigDecimal score;

    @TableField(exist = false)
    private List<QuestionOption> options;

    @TableField(exist = false)
    private List<QuestionAnswer> answers;

    @TableField(exist = false)
    private List<Long> tagIds;

    @TableField(exist = false)
    private List<Long> categoryIds;
}